package com.web.product;

import java.util.Scanner;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;


@SpringBootApplication
@EnableEurekaClient
public class ServiceProvider {
	
	public static void main(String[] args) {
		//读取控制台输入的端口，避免端口冲突
		Scanner s = new Scanner(System.in);
		String port = s.nextLine();
		new SpringApplicationBuilder(ServiceProvider.class).properties("server.port="+port).run(args);
	}

}
